#include <math.h>

#include "gfx.h"

namespace polaris
{
    class logic
    {
        public:
        logic(polaris::window *iwin, polaris::player *ip1, polaris::player **ibackgrounds);

        void doInputs(int whichplayer);

        void doPhysics();

        void drawEnviroment();

        void drawBackgrounds();

        void drawObstacles(polaris::player *opp);

        void generateCity(int *icity, int icitysize);

        void drawMinimap(int u, int v, int r, int g, int b, int counter, polaris::player *opponent);


        int *city;
        int citysize;

        bool dozer;

        private:
        polaris::window *win;
        polaris::player *p1;
        polaris::player **background;

        polaris::sound *music;

        int w,h;

    };
};
